Fix registration on managed domains on xend restart.
authorEwan Mellor <ewan@xensource.com>
Thu, 30 Nov 2006 19:11:51 +0000 (19:11 +0000)
committerEwan Mellor <ewan@xensource.com>
Thu, 30 Nov 2006 19:11:51 +0000 (19:11 +0000)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendDomain.py

index ed3df761df2304052ddac4bd8bea5c834f0f28d8..9a4d112e959d92bcf0381599c742984c4ac46335 100644 (file)
@@ -191,6 +191,8 @@ class XendDomain:
                         # instantiate domain if not started.
                         new_dom = XendDomainInfo.createDormant(dom)
                         self._managed_domain_register(new_dom)
+                    else:
+                        self._managed_domain_register(running_dom)
                 except Exception:
                     log.exception("Failed to create reference to managed "
                                   "domain: %s" % dom_name)